<?php
declare(strict_types=1);
// 个人账户
namespace app\tjy_v1\controller;
class Account
{
    // 账户明细流水
    public function AccountDetail()
    {
        $apidb = [
            'code' => 200,
            'time' => time(),
            'cache' => cache("我是谁"),
            'msg' => "账户明细流水",
            "db" => [
                "list" => [
                    [
                        "id" => 73,
                        "log_id" => "172300098664239106",
                        "user_id" => "164904338662182914",
                        "change_amount" => "-199.00",
                        "change_type" => 10200,
                        "change_desc" => "订单支付172299788799709186",
                        "change_time" => "2021-04-20 10:59:04",
                        "after_change" => "0.00",
                        "audit_status" => 1,
                        "is_delete" => 0,
                        "update_time" => "2021-04-20 10:59:04",
                        "create_time" => "2021-04-20 10:59:04",
                        "change_type_name" => "消费"
                    ],
                    [
                        "id" => 72,
                        "log_id" => "172300045321244674",
                        "user_id" => "164904338662182914",
                        "change_amount" => "400.00",
                        "change_type" => 10100,
                        "change_desc" => "",
                        "change_time" => "2021-04-20 10:58:51",
                        "after_change" => "0.00",
                        "audit_status" => 1,
                        "is_delete" => 0,
                        "update_time" => "2021-04-20 10:58:51",
                        "create_time" => "2021-04-20 10:58:51",
                        "change_type_name" => "手动调整"
                    ]
                ],
                "total" => 2,
                "group" => [
                    [
                        "expense" => "1959.00",
                        "income" => "4050.00",
                        "month" => "2021-04",
                        "list" => [
                            [
                                "id" => 73,
                                "log_id" => "172300098664239106",
                                "user_id" => "164904338662182914",
                                "change_amount" => "-199.00",
                                "change_type" => 10200,
                                "change_desc" => "订单支付172299788799709186",
                                "change_time" => "2021-04-20 10:59:04",
                                "after_change" => "0.00",
                                "audit_status" => 1,
                                "is_delete" => 0,
                                "update_time" => "2021-04-20 10:59:04",
                                "create_time" => "2021-04-20 10:59:04",
                                "change_type_name" => "消费"
                            ],
                            [
                                "id" => 72,
                                "log_id" => "172300045321244674",
                                "user_id" => "164904338662182914",
                                "change_amount" => "400.00",
                                "change_type" => 10100,
                                "change_desc" => "",
                                "change_time" => "2021-04-20 10:58:51",
                                "after_change" => "0.00",
                                "audit_status" => 1,
                                "is_delete" => 0,
                                "update_time" => "2021-04-20 10:58:51",
                                "create_time" => "2021-04-20 10:58:51",
                                "change_type_name" => "手动调整"
                            ]
                        ],
                    ]
                ]
            ]
        ];
        return json($apidb);
    }
    // 积分明细
    public function IntegralDetail()
    {
        $apidb = [
            'code' => 200,
            'time' => time(),
            'cache' => cache("我是谁"),
            'msg' => "积分明细",
            "db" => [
                "list" => [
                    [
                        "id" => 73,
                        "log_id" => "172300098664239106",
                        "user_id" => "164904338662182914",
                        "change_amount" => "-199.00",
                        "change_type" => 10200,
                        "change_desc" => "订单支付172299788799709186",
                        "change_time" => "2021-04-20 10:59:04",
                        "after_change" => "0.00",
                        "audit_status" => 1,
                        "is_delete" => 0,
                        "update_time" => "2021-04-20 10:59:04",
                        "create_time" => "2021-04-20 10:59:04",
                        "change_type_name" => "消费"
                    ],
                    [
                        "id" => 72,
                        "log_id" => "172300045321244674",
                        "user_id" => "164904338662182914",
                        "change_amount" => "400.00",
                        "change_type" => 10100,
                        "change_desc" => "",
                        "change_time" => "2021-04-20 10:58:51",
                        "after_change" => "0.00",
                        "audit_status" => 1,
                        "is_delete" => 0,
                        "update_time" => "2021-04-20 10:58:51",
                        "create_time" => "2021-04-20 10:58:51",
                        "change_type_name" => "手动调整"
                    ]
                ],
                "total" => 2,
                "group" => [
                    [
                        "month" => "2021-04",
                        "list" => [
                            [
                                "id" => 73,
                                "log_id" => "172300098664239106",
                                "user_id" => "164904338662182914",
                                "change_amount" => "-199.00",
                                "change_type" => 10200,
                                "change_desc" => "订单支付172299788799709186",
                                "change_time" => "2021-04-20 10:59:04",
                                "after_change" => "0.00",
                                "audit_status" => 1,
                                "is_delete" => 0,
                                "update_time" => "2021-04-20 10:59:04",
                                "create_time" => "2021-04-20 10:59:04",
                                "change_type_name" => "消费"
                            ],
                            [
                                "id" => 72,
                                "log_id" => "172300045321244674",
                                "user_id" => "164904338662182914",
                                "change_amount" => "400.00",
                                "change_type" => 10100,
                                "change_desc" => "",
                                "change_time" => "2021-04-20 10:58:51",
                                "after_change" => "0.00",
                                "audit_status" => 1,
                                "is_delete" => 0,
                                "update_time" => "2021-04-20 10:58:51",
                                "create_time" => "2021-04-20 10:58:51",
                                "change_type_name" => "手动调整"
                            ]
                        ],
                    ]
                ]
            ]
        ];
        return json($apidb);
    }
    // 我的浏览记录
    public function BrowseDetail()
    {
        $apidb = [
            'code' => 200,
            'time' => time(),
            'cache' => cache("我是谁"),
            'msg' => "我的浏览记录",
            "db" => [
                "total" => 6,
                "list" => [
                    [
                        "goods_image" => "https://img14.360buyimg.com/n1/s800x800_jfs/t1/139220/40/17156/149715/5fcd845dEd0b7fa22/d5d02cb4d8e3d134.jpg",
                        "goods_name" => "两件套套装裙连衣裙春季女装新款内搭套头针织衫毛衣中长款打底裙",
                        "goods_short_name" => "",
                        "goods_id" => "153546481082105856",
                        "final_price" => "199.00",
                        "browse_id" => "164907168659861506",
                        "browse_time" => "2021-03-31 01:29:09"
                    ],
                    [
                        "goods_image" => "https://img14.360buyimg.com/n1/s800x800_jfs/t1/156168/40/7900/148247/60135a66E25dfddf9/cfa73c385c5ed75a.jpg",
                        "goods_name" => "禧美 国产大虾 净重1.8kg 90-108只/盒 对虾 烧烤 火锅 生鲜 海鲜水产",
                        "goods_short_name" => "国产大虾",
                        "goods_id" => "154338107942731778",
                        "final_price" => "126.00",
                        "browse_id" => "228215616832286722",
                        "browse_time" => "2021-09-21 18:07:23"
                    ],
                    [
                        "goods_image" => "https://img14.360buyimg.com/n1/s800x800_jfs/t1/44899/31/4928/223659/5d2a7c8fE46b882ba/8ee4f1a11d6b0f64.jpg",
                        "goods_name" => "短袖t恤男夏季纯白色韩版男士纯色圆领半袖体恤打底衫潮流半截袖夏装修身棉弹力上衣",
                        "goods_short_name" => "纯白色韩版t恤",
                        "goods_id" => "155103827952750594",
                        "final_price" => "58.00",
                        "browse_id" => "172315313867759618",
                        "browse_time" => "2021-04-20 11:59:32"
                    ],
                    [
                        "goods_image" => "https://img14.360buyimg.com/n1/s800x800_jfs/t23884/24/36497449/456723/81bd9800/5b236267N095864e2.jpg",
                        "goods_name" => "西子映香 真丝丝巾女桑蚕丝杭州丝绸高档真丝围巾女士印花大方巾职场围脖披肩围巾送礼母亲妈妈款",
                        "goods_short_name" => "",
                        "goods_id" => "155832710212702210",
                        "final_price" => "298.00",
                        "browse_id" => "228215648318324738",
                        "browse_time" => "2021-09-21 18:07:30"
                    ],
                    [
                        "goods_image" => "https://img14.360buyimg.com/n1/s800x800_jfs/t1/130863/13/16133/123291/5fb204e5E6ffdc61a/f5805cfbf1cdf8fc.jpg",
                        "goods_name" => "裙钗记包芯纱秋冬韩版宽松V领毛衣女大码针织衫女打底衫长袖上衣",
                        "goods_short_name" => "",
                        "goods_id" => "156567141409681410",
                        "final_price" => "39.00",
                        "browse_id" => "228215631929335810",
                        "browse_time" => "2021-09-21 18:07:26"
                    ],
                    [
                        "goods_image" => "https://img14.360buyimg.com/n1/s800x800_jfs/t1/168288/34/8135/79735/60373b86Eb793b295/596817183ac077e0.jpg",
                        "goods_name" => "联想(Lenovo)YOGA 14s 英特尔Evo平台14英寸全面屏超轻薄笔记本电脑",
                        "goods_short_name" => "",
                        "goods_id" => "157166433979977730",
                        "final_price" => "5928.00",
                        "browse_id" => "178996046593806338",
                        "browse_time" => "2021-05-08 22:26:23"
                    ]
                ],
            ]
        ];
        return json($apidb);
    }
    // 删除我的浏览记录
    public function BrowseDetailDelete()
    {
        $apidb = [
            'code' => 200,
            'time' => time(),
            'cache' => cache("我是谁"),
            'msg' => "删除我的浏览记录",
        ];
        return json($apidb);
    }
    // 我的收藏夹
    public function MYCollect()
    {
        $apidb = [
            'code' => 200,
            'time' => time(),
            'cache' => cache("我是谁"),
            'msg' => "我的收藏夹",
            "db" => [
                "total" => 5,
                "list" => [
                    [
                        "goods_image" => "https://img14.360buyimg.com/n1/s800x800_jfs/t1/168288/34/8135/79735/60373b86Eb793b295/596817183ac077e0.jpg",
                        "goods_name" => "联想(Lenovo)YOGA 14s 英特尔Evo平台14英寸全面屏超轻薄笔记本电脑",
                        "goods_short_name" => "",
                        "goods_id" => "157166433979977730",
                        "final_price" => "5928.00",
                        "collect_id" => "178996392013000706"
                    ],
                    [
                        "goods_image" => "https://img14.360buyimg.com/n1/s800x800_jfs/t1/139220/40/17156/149715/5fcd845dEd0b7fa22/d5d02cb4d8e3d134.jpg",
                        "goods_name" => "两件套套装裙连衣裙春季女装新款内搭套头针织衫毛衣中长款打底裙",
                        "goods_short_name" => "",
                        "goods_id" => "153546481082105856",
                        "final_price" => "199.00",
                        "collect_id" => "228215607313113090"
                    ],
                    [
                        "goods_image" => "https://img14.360buyimg.com/n1/s800x800_jfs/t1/156168/40/7900/148247/60135a66E25dfddf9/cfa73c385c5ed75a.jpg",
                        "goods_name" => "禧美 国产大虾 净重1.8kg 90-108只/盒 对虾 烧烤 火锅 生鲜 海鲜水产",
                        "goods_short_name" => "国产大虾",
                        "goods_id" => "154338107942731778",
                        "final_price" => "126.00",
                        "collect_id" => "228215621333405698"
                    ],
                    [
                        "goods_image" => "https://img14.360buyimg.com/n1/s800x800_jfs/t1/130863/13/16133/123291/5fb204e5E6ffdc61a/f5805cfbf1cdf8fc.jpg",
                        "goods_name" => "裙钗记包芯纱秋冬韩版宽松V领毛衣女大码针织衫女打底衫长袖上衣",
                        "goods_short_name" => "",
                        "goods_id" => "156567141409681410",
                        "final_price" => "39.00",
                        "collect_id" => "228215637341515776"
                    ],
                    [
                        "goods_image" => "https://img14.360buyimg.com/n1/s800x800_jfs/t23884/24/36497449/456723/81bd9800/5b236267N095864e2.jpg",
                        "goods_name" => "西子映香 真丝丝巾女桑蚕丝杭州丝绸高档真丝围巾女士印花大方巾职场围脖披肩围巾送礼母亲妈妈款",
                        "goods_short_name" => "",
                        "goods_id" => "155832710212702210",
                        "final_price" => "298.00",
                        "collect_id" => "228215653449232386"
                    ]
                ],
            ]
        ];
        return json($apidb);
    }
    // 取消我的收藏夹
    public function MYCollectDelete()
    {
        $apidb = [
            'code' => 200,
            'time' => time(),
            'cache' => cache("我是谁"),
            'msg' => "取消我的收藏夹",
        ];
        return json($apidb);
    }
}
